﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _3_1
{
    internal class Class1
    {
        public class Circle
        {
            private double x, y, r;

            public void SetValue(double x, double y, double r)
            {
                this.x = x;
                this.y = y;
                this.r = r;
            }

            public double GetArea()
            {
                return Math.Round(Math.PI * r * r, 2);
            }

            public double GetPerimeter()
            {
                return Math.Round(2 * Math.PI * r, 2);
            }

            public double GetDistance()
            {
                return Math.Round(Math.Sqrt(x * x + y * y), 2);
            }
        }
    }
}
